package com.jd.sys.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.jd.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：
 */
@Data
public class Menu extends BaseDomain{

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;
    private String intro;
    private Boolean state;
    // 关联查询
    private Menu parent;
    // 级联框数据
    @JsonInclude(JsonInclude.Include.NON_EMPTY) // 没有数据就不显示
    private List<Menu> children = new ArrayList<>();

}
